package com.shoulei.designpattern.facadePattern;

/**
 * @ClassName:ShapeMaker
 * @Descrition:
 * @Author:shoulei
 * @Date:2019/4/14 15:04
 * @Verson:
 */
public class ShapeMaker {
    private Rectangle rectangle;
    private Circle circle;
    private Square square;

    public ShapeMaker(Rectangle rectangle, Circle circle, Square square) {
        this.rectangle = rectangle;
        this.circle = circle;
        this.square = square;
    }

    public void drawRectangle(){
        rectangle.draw();
    }
    public void drawCircle(){
        circle.draw();
    }
    public void drawSquare(){
        square.draw();
    }
}
